<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
    <!-- 官网 http://www.trentrichardson.com/jsonsql/ -->
    <script src="../jsonsql-0.1.js"></script>
</head>
<body>

<script>
    var test;
    $.getJSON('train.json',function (data) {
        console.log(data);
        test = data;
        var a = jsonsql.query('select * from test',test);
        console.log(a);
    })
</script>
</body>
</html>